﻿using System.Collections.Generic;

namespace Titan.WinFormSys.Entity
{
    /// <summary>
    /// 用户信息实体类 
    /// </summary>
    public class UserInfoEntity
    {
        /// <summary>
        /// 默认构造方法
        /// </summary>
        /// <param name="strUserId">用户ID</param>
        /// <param name="strUserName">用户名称</param>
        /// <param name="strUserPwd">用户密码</param>
        /// <param name="strRoleid">角色ID</param>
        /// <param name="strRoleName">角色名称</param> 
        /// <param name="strIpAddress">IP地址</param> 
        /// <param name="strMac">MAC</param> 
        /// <param name="lPowersEntities">权限</param> 
        public UserInfoEntity(string strUserId,string strUserName,string strUserPwd,string strRoleid,string strRoleName,string strIpAddress,string strMac,string chinesename,List<RolePowersEntity> lPowersEntities)
        {
            UserName = strUserName;
            UserId = strUserId;
            UserPwd = strUserPwd;
            RoleId = strRoleid;
            RoleName = strRoleName;
            IpAddress = strIpAddress;
            Powers = lPowersEntities;
            Mac = strMac;
            ChineseName = chinesename;
        }

        /// <summary>
        /// 中文名
        /// </summary>
        public string ChineseName { get; private set; }

        /// <summary>
        /// 用户ID
        /// </summary>
        public string UserId { get; private set; }

        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; private set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string UserPwd { get; private set; }
        /// <summary>
        /// 角色ID
        /// </summary>
        public string RoleId { get; private set; }
        /// <summary>
        /// 角色名称
        /// </summary>
        public string RoleName { get; private set; }
        /// <summary>
        /// IP地址
        /// </summary>
        public string IpAddress { get; private set; }
        /// <summary>
        /// Mac地址
        /// </summary>
        public string Mac { get; private set; }
        /// <summary>
        /// 权限
        /// </summary>
        public List<RolePowersEntity> Powers { get; private set; }

    }
}
